package org.secur.eave.util

/**
 *Create by Xianban
 *2024/8/26 11:43
 */

import com.tencent.mmkv.MMKV

object MMKVUtil {
	
	private const val STRING_KEY = "fixed_key_string"
	
	fun saveStringValue(value: String) {
		val mmkv = MMKV.defaultMMKV()
		mmkv.encode(STRING_KEY, value)
	}
	
	fun getStringValue(): String? {
		val mmkv = MMKV.defaultMMKV()
		return mmkv.decodeString(STRING_KEY, null)
	}
}
